﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addbook.aspx.cs" Inherits="HY.WEB.OA._addbook" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>

<form id="form1" runat="server">

<ext:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
ShowBorder="false" EnableBackgroundColor="true" >
<Rows>

<ext:FormRow ID="FormRow1" runat="server">
<Items>

<ext:DropDownList ID="ddlfiled" runat="server" Label="查询字段"  >
</ext:DropDownList>

<ext:DropDownList ID="ddlwhere" runat="server" Label="查询条件"  >
</ext:DropDownList>

<ext:TwinTriggerBox ID="txt" runat="server" ShowLabel="false" EmptyText="关键字"
 Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false" OnTrigger2Click="ttbSearchMessage_Trigger2Click"
　OnTrigger1Click="ttbSearchMessage_Trigger1Click">
</ext:TwinTriggerBox>

    <ext:Button ID="btnSearch" Icon="Zoom" runat="server"  Text="高级查询" >
    </ext:Button>
</Items>
</ext:FormRow>

</Rows>
</ext:Form>
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel2" />
    
    <ext:Panel ID="Panel2" runat="server" Height="250px" ShowBorder="True" AutoWidth="true"  
        Layout="HBox" BoxConfigAlign="Stretch" BoxConfigPosition="Left" BoxConfigPadding="0"
        BoxConfigChildMargin="0 0 0 0" ShowHeader="True" Title="任务提醒" >
      
        <Items>     
       
  <ext:SimpleForm ID="SimpleForm1" BodyPadding="5px" Width="300px" EnableBackgroundColor="true"
        Title="添加｜编辑" runat="server" AutoScroll="true" >
         <Items>
             <ext:HiddenField ID="hidsid" runat="server">
             </ext:HiddenField>        
             <ext:TextBox ID="txtnm" runat="server" Label="姓名" Text="" Required="true" ShowRedStar="true">
             </ext:TextBox>

            
             <ext:DropDownList ID="ddlsex" runat="server" Label="性别">
              <ext:ListItem Text="男"  Value="男" />
               <ext:ListItem Text="女" Value="女"  />
             </ext:DropDownList>
             
             <ext:DatePicker runat="server" Required="true" Label="出生日期" EmptyText="请选择出生日期"
                ID="txtbsday" ShowRedStar="True" DateFormatString="yyyy-M-d"    >
            </ext:DatePicker>  

              
                  <ext:TextBox ID="txtadd" runat="server" Label="住址" Text="">
             </ext:TextBox>
   <ext:TextBox ID="txttel" runat="server" Label="联系电话" Text="">
             </ext:TextBox>
             <ext:TextBox ID="txtmobail" runat="server" Label="移动电话" Text=""  Required="true" ShowRedStar="true">
             </ext:TextBox>
                <ext:TextBox ID="txtstel" runat="server" Label="集团短号" Text="" >
             </ext:TextBox>
                  <ext:TextBox ID="txtfax" runat="server" Label="传真" Text="">
             </ext:TextBox>
                   <ext:TextBox ID="txtmail" runat="server" Label="邮箱" Text="">
             </ext:TextBox>

      <ext:TextBox ID="txtqq" runat="server" Label="QQ" Text="">
             </ext:TextBox>

      <ext:TextBox ID="txtmsn" runat="server" Label="MSN" Text="">
             </ext:TextBox>

            <ext:TextArea ID="txtmemo" runat="server" Height="50px" Label="描述" Text=""  >
            </ext:TextArea>

             <ext:Button ID="btsave" runat="server" Text="保存" OnClick="btsave_Click">
             </ext:Button>
                       </Items>
    </ext:SimpleForm>
           
          
          <ext:Panel ID="Panel3" Title="通讯录" EnableBackgroundColor="true" BoxFlex="2" runat="server"
                BodyPadding="5px" BoxMargin="0" ShowBorder="true"  Height="500" ShowHeader="true">
                    <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnDelete" Text="删除选中项" Icon="Delete" OnClick="btnDelete_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
                <Items>
                           
                                          
            <ext:Grid ID="Grid2" Title="网址"  Height="380px"  AllowSorting="true" AutoScroll="true"  Width="780px"   PageSize="15" ShowBorder="true" ShowHeader="true"  AllowPaging="true"
        runat="server" EnableCheckBoxSelect="True"  DataKeyNames="sid"  AutoPostBack="true"   onrowcommand="Grid2_RowCommand" 
        OnPageIndexChange="Grid2_PageIndexChange" EnableRowNumber="True" OnSort="Grid2_Sort">
      
        <Columns>
            <ext:TemplateField Width="60px"  HeaderText="编号" SortField="sid" >
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
                </ItemTemplate>
            </ext:TemplateField>

            <ext:BoundField Width="60px" DataField="bname" HeaderText="姓名"  SortField="bname"  />
            <ext:BoundField Width="60px" DataField="sex" HeaderText="性别"   SortField="sex"/>
            <ext:BoundField Width="120px" DataField="bsday" HeaderText="出生日期" DataFormatString="{0:yyyy-MM-dd}"  SortField="bsday" />
            <ext:BoundField Width="120px" DataField="address" HeaderText="住址"   SortField="address"/>
            <ext:BoundField Width="100px" DataField="tel" HeaderText="联系电话"   SortField="tel"/>
                       
            <ext:BoundField Width="100px" DataField="phone" HeaderText="移动手机"  SortField="phone" />
           <ext:BoundField Width="80px" DataField="ctel" HeaderText="集团短号"  SortField="ctel" />
            <ext:BoundField Width="50px" DataField="fax" HeaderText="传真"   SortField="fax"/>
       
             <ext:BoundField Width="50px" DataField="mail" HeaderText="邮箱"  SortField="mail" />
                    <ext:BoundField Width="60px" DataField="qq" HeaderText="QQ"   SortField="qq"/>      
     
           <ext:LinkButtonField Width="60px" CommandName="edit" Icon="TableEdit"   HeaderText="修改" />             

      
                  
        </Columns>
    </ext:Grid>          


                </Items>

            </ext:Panel>

 
        </Items>
    </ext:Panel>
     <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="509px">
    </ext:Window>
    <br />
    <br />
    <br />
    <br />
    <br />
    </form>
</body>
</html>
